package com.tms.test;

import com.zebra.remoting.CommandHandler;
import com.zebra.remoting.protocol.ZebraCommand;
import io.netty.channel.ChannelHandlerContext;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;

import java.util.concurrent.ExecutorService;

public class TmsClientCommandHandler implements CommandHandler {
    private static final InternalLogger logger = InternalLoggerFactory.getInstance(TmsClientCommandHandler.class);




    @Override
    public void handleCommand(ChannelHandlerContext ctx, Object msg) throws Exception {

        ZebraCommand context = (ZebraCommand) msg;

        logger.info("------------ TMS 客户端 收到消息 {}", context.toString());

//        context.sendMessage(context.getRequest());


    }

    @Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        logger.info("-------- channelInactive {}", ctx.channel().toString());
    }



    public ExecutorService getDefaultExecutor() {
        return null;
    }
}
